<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0022)http://www.gaodun.com/ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="apple-itunes-app" content="app-id=591578609">
<meta name="viewport" content="width=device-width" />
<meta name="description" content="德瑞姆网校" />
<meta name="keywords" content="德瑞姆网校、心理学、考试" />
 
<link rel="stylesheet" type="text/css" href="<c:url value='/css/simplePagination.css'/>">
<link rel="stylesheet" type="text/css" href="<c:url value='/css/agency.css'/>">
<!--[if IE 7]>
<link rel="stylesheet" href="/css/font-awesome/css/font-awesome-ie7.min.css">
<![endif]-->


<script type="text/javascript" src="<c:url value='/js/tabs.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/jquery-1.9.0.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/jquery.simplePagination.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/tinymce/tinymce.min.js'/>"></script> 
<script type="text/javascript" src="<c:url value='/js/ajaxfileupload.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/agent/info.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/agent/act.js'/>"></script> 
<script type="text/javascript" src="<c:url value='/js/agent/banner.js'/>"></script> 
<script type="text/javascript" src="<c:url value='/js/agent/cent.js'/>"></script> 
<script type="text/javascript" src="<c:url value='/js/agent/pic.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/agent/stu.js'/>"></script> 
 
<title>德瑞姆代理商空间</title>
<script type="text/javascript">
$(document).ready(function(){
	
    $(".agen_body .agen_right").hide();
    
    
    $("#subHomePage").click(function(){
    	 window.open(contextRootPath + "/agentHomePage/homeInit");
    });
    
    init();
    
	$(".agen_body .agen_left .agen_left_nav a").click(function(){
		$(".agen_left_nav .agen_left_nav01").removeClass("clickcolor");
		var id = $(this).attr("id");
		var idx = $(this).index();
		var tp = 0;
		if(idx == 1) {
			tp = 1;
		}else if(idx == 2) {
			tp = 10;
		}
		$(".agen_left_nav .agen_left_nav01").eq(idx).addClass('clickcolor');
		$.ajax({
			  type: "POST",
			  url: contextRootPath + "/agent/htmlcontent",
			  data:JSON.stringify({"type": id,"articleTp": tp})  ,
			  dataType: "html",
			  contentType: "application/json; charset=utf-8",
			  success: function(data){
				  /** 成功构造内容**/
				  $("#contentdiv").html(data);
				  if(0 == idx) {
					  bannerEvent.init();
				  } else if (1 == idx) {
					  infoEvent.init();
				  } else if (2 == idx) {
					  actEvent.init();
				  }else if (5 == idx) {
					  stuMngEvent.init();
				  }
				 
				} 
			});
		
		
	});


});



function init() {
	$(".agen_left_nav .agen_left_nav01").removeClass("clickcolor");
	$(".agen_left_nav .agen_left_nav01").eq(0).addClass('clickcolor');
	$.ajax({
		  type: "POST",
		  url: contextRootPath + "/agent/htmlcontent",
		  data:JSON.stringify({"type": 'agnav00',"articleTp": 0})  ,
		  dataType: "html",
		  contentType: "application/json; charset=utf-8",
		  success: function(data){
			  /** 成功构造内容**/
			  $("#contentdiv").html(data);
			  bannerEvent.init();
			} 
		});
}
		
var paging = {
		/** 是分页的 数字按钮切换到 pageNo 的位置 **/
		selectPage:function(pageNo)	{  		$("#pagingdiv").pagination('selectPage',pageNo );  	},
		/****调到当前页数的前一页****/
	    prevPage :function ()		{ 		$("#pagingdiv").pagination('prevPage');				},
	    /****调到当前页数的下一页****/
	    nextPage: function() 		{    	$("#pagingdiv").pagination('nextPage');    	 		},
	    /****获得分页数量的总数****/
	    getPagesCount:function () 	{ 		$("#pagingdiv").pagination('getPagesCount');   		},
	    
	    getCurrentPage:function() 	{  		$("#pagingdiv").pagination('getCurrentPage');   	},
	    /*****是分页按钮不可用******/
	    disable:function (){	$("#pagingdiv").pagination('disable');    },
	    /*****是分页按钮可用******/
	    enable:function (){	$("#pagingdiv").pagination('enable');    },
	    /*******销毁 分页插件 ********/
	    destroy:function (){	$("#pagingdiv").pagination('destroy');    },
	    /***重新绘制分页***/ 
	    redraw:function (){		$("#pagingdiv").pagination('redraw');     },
	    /**  修改分页的总数***/
	    updateItems:function (totalNum){  $("#pagingdiv").pagination('updateItemsOnPage', totalNum?totalNum:0);  },
	    
	    /**  修改分页的总数***/
	    updateItems:function (totalNum){  $("#pagingdiv").pagination('updateItemsOnPage', totalNum?totalNum:0);  },
		
	    /**********分页中显示 多少个 按钮，  *********/
	    drawPage:function(showbNum) {$("#pagingdiv").pagination('drawPage', showbNum?showbNum:8);     }
	};
	
	
	function createPageDiv(totalCnt,perSize,pageNo,type,sortKey,sortOrder){
		// paging.selectPage(pageNo?pageNo:1);
		$("#pagingdiv").pagination({
			currentPage:pageNo?pageNo:1,
	        items: totalCnt? totalCnt:0,
	        itemsOnPage: perSize?perSize:8,
	        onPageClick:function(pageNumber, event){
	    		$.ajax({
	    			  type: "POST",
	    			  url: contextRootPath + "/agent/htmlcontent",
	    			  data:JSON.stringify({"type": type, "pageNo": pageNumber,"pageSize":perSize, "orderKey": sortKey,"orderKeySort":sortOrder, "articleTp": tp}),
	    			  dataType: "html",
	    			  contentType: "application/json; charset=utf-8",
	    			  success: function(data){
	    				  /** 成功构造内容**/
	    				  $("#contentdiv").html(data);
	    				} 
				});
	    	}
	 });
	}
</script>


<style type="text/css">
a {
	color: #222;
	text-decoration: none;
}

li {
	list-style-type: disc;
	font-size: 14px;
}

.clickcolor {
 color: #578429  
}
</style>
</head>
<body style="align:center; padding:0;margin:0;clear:both; background-color:FEFEFE;">
<div class="user_top">
    <div class="user_top01">
        <div class="user_top02"> <a href="#"><img src="<c:url value='/images/xxpt.png'/>" />&nbsp;&nbsp;代理商工作平台</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="#">回首页</a>&nbsp;&nbsp;&nbsp;&nbsp; <a id="subHomePage" href="#">分中心主页</a> </div>
        <div class="user_top03">&nbsp;&nbsp;&nbsp;&nbsp; <a href="agency_set.htm">账号设置</a>&nbsp;&nbsp;&nbsp;&nbsp; <a href="#">帮&nbsp;&nbsp;助</a>&nbsp;&nbsp;&nbsp;</div>
    </div>
</div>
<div style="width: 100%; height: 30px; margin: 0 auto;"></div>
<div class="agen_body">
	<div class="agen_left">
		<div class="agen_left_top">
			<div class="agen_left_top01">
				<div class="agen_left_top0101"><img src="${userAmount.userHimg}" /></div>
				<div class="agen_left_top0102">${userAmount.userLnm}</div>
			</div>
			<div class="agen_left_top02">预付款：${userAmount.userAmount}<br /> 代理区域：${userAmount.userProv}</div>
			<div class="agen_left_top03" style="text-align:right;font-size:14px;line-height:20px;height:30px;">
			<a href="#">
			<div style="position:relative;float:left;left:75%;width:10px;height:20px;padding-top:2px;"><img src="../images/tc.png"/>
			</div>
			退出</a>
			 </div>
		</div>
        <div class="agen_left_nav">
            <a id="agnav00" href="#"><div class="agen_left_nav01">首页广告</div></a>
			<a id="agnav01" href="#"><div class="agen_left_nav01">资讯管理</div></a>
			<a id="agnav02" href="#"><div class="agen_left_nav01">活动管理</div></a>
			<a id="agnav03" href="#"><div class="agen_left_nav01">中心介绍</div></a>
			<a id="agnav04" href="#"><div class="agen_left_nav01">相册管理</div></a>
			<a id="agnav05" href="#"><div class="agen_left_nav01">学员管理</div></a>
			<a id="agnav06" href="#"><div class="agen_left_nav01">我的账户</div></a>
	   </div>
    </div>
    <div id="contentdiv">
   
    </div>
   <!--  <iframe id="iframeshowcontent" src=""></iframe> -->
</div>

<div class="redivb01 retext09">
	京ICP备15004773号 &nbsp;&nbsp; &nbsp; &nbsp; Copyright ? 2013 &nbsp;
	&nbsp; &nbsp; &nbsp; 北京德瑞姆企业管理咨询有限公司 &nbsp; &nbsp; &nbsp; &nbsp; <span class=" retext10">www.deruimu.com </span>
</div>
</body>
</html>